package com.ruoyi.project.system.personnel.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 人员信息Entity
 * @author LHF
 */
public class Info extends BaseEntity {

    private static final long serialVersionUID = 7563532040006341632L;

    /**
     * 用户id（工号）
     */
    private Integer userId;

    /**
     * 员工姓名
     */
    private String userName;

    /**
     * 性别  0男  1女  2未知
     */
    private String sex;

    /**
     * 员工职位
     */
    private String postName;

    /**
     * 手机
     */
    private String phoneNumber;

    /**
     * 所属部门
     */
    private String deptName;

    /**
     * 状态   0正常 1停用
     */
    private String status;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex.equals("0")?"男":sex.equals("1")?"女":"未知";
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getStatus() {
        return status.equals("0")?"正常":"停用";
    }

    public void setStatus(String status) {
        this.status = status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId",getUserId())
                .append("userName",getUserName())
                .append("sex",getSex())
                .append("postName",getPostName())
                .append("phoneNumber",getPostName())
                .append("deptName",getDeptName())
                .append("createTime",getCreateTime())
                .append("status",getStatus())
                .toString();
    }
}
